<template>

  <div>

    <data-table
      ref="pagingTable"
      :options="options"
      :list-query="listQuery"
    >

      <template #filter-content>

        <el-input v-model="listQuery.params.refRemark" style="width: 200px" placeholder="搜索备注信息" class="filter-item" />

      </template>

      <template #data-columns>

        <el-table-column
          type="selection"
          width="55"
        />

        <el-table-column
          align="center"
          label="获取时间"
          prop="createTime"
        />

        <el-table-column
          align="center"
          label="积分数量"
          prop="points"
        />

        <el-table-column
          align="center"
          label="备注"
          prop="refRemark"
        />

      </template>
    </data-table>

  </div>

</template>

<script>
import DataTable from '@/components/DataTable'

export default {
  components: { DataTable },
  data() {
    return {

      listQuery: {
        current: 1,
        size: 10,
        params: {

        }
      },

      options: {
        // 列表请求URL
        listUrl: '/api/user/points/paging'
      }
    }
  },

  created() {
    const userId = this.$route.params.id
    if (userId !== undefined) {
      this.listQuery.params.userId = userId
    }
  },

  methods: {

  }
}
</script>
